let channelID;

window.onload = function (){
    channelID = getQuery("channelID");
}
function addMainPost(){
    axios.get("/mainPost/add",{
        params:{
            title:$("title").value,
            content:$("content").value,
            channelID
        }
    }).then(resp=>{
        if (resp.data=="ok"){
            location.href=`/mainPost.html?channelID=${channelID}`
        }
    })
}